
//
//  NSNotifiSecondVC.m
//  kvo
//
//  Created by YuanJiang on 2019/9/5.
//  Copyright © 2019 llbt. All rights reserved.
//

#import "NSNotifiSecondVC.h"
#define kNotificationIdentifer @"notificationIdentifer"
@interface NSNotifiSecondVC ()

@end

@implementation NSNotifiSecondVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"asd";
    self.view.backgroundColor = [UIColor redColor];
}

-(void)viewWillDisappear:(BOOL)animated
{
    //传值
    [[NSNotificationCenter defaultCenter] postNotificationName:kNotificationIdentifer object:self userInfo:@{@"title":self.navigationItem.title}];
}

@end
